﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Reflection;

namespace SynoManager.GUI
{
    public partial class AboutForm : Form
    {
        public AboutForm()
        {
            InitializeComponent();
            Assembly ass = Assembly.GetExecutingAssembly();
            versionLabel.Text = ass.GetName().Version.ToString();
        }

        private void linkLabelClick(object sender, EventArgs e)
        {
            LinkLabel label = (LinkLabel) sender;
            Process.Start(label.Text);
        }

        private void checkForUpdatesButton_Click(object sender, EventArgs e)
        {
             UpdateChecker.CheckUpdateAndShowWindow(this);
        }
    }
}
